.TH qarray_elem 3 "APRIL 2011" libqthread "libqthread"
.SH NAME
.BR qarray_elem " \- return a pointer to a distributed array element"
.SH SYNOPSIS
.B #include <qthread/qarray.h>

.I void *
.br
.B qarray_elem
.RI "(const qarray * " array ", const size_t " index );
.PP
.I void *
.br
.B qarray_elem_nomigrate
.RI "(const qarray * " array ", const size_t " index );
.PP
.I void *
.br
.B qarray_elem_migrate
.RI "(const qarray * " array ", const size_t " index );
.SH DESCRIPTION
These functions return a pointer to the
.I index
element of the
.I array
distributed array. The
.BR qarray_elem_migrate ()
function will additionally migrate the calling thread to the shepherd of the
specified element.
.SH SEE ALSO
.BR qarray_create (3),
.BR qarray_destroy (3),
.BR qarray_iter (3),
.BR qarray_shepof (3)
